package com.asialjim.wechat.message;

/**
 * <h1><em>ASIAL JIM JAVA DOC</em></h1><hr/>
 * <h2>CLASS DESCRIPTION <i>[ NAME: WeChatMessageHandler ]</i> </h2><strong>
 * <p> 微信消息处理器
 * </strong><p><p>Copyright &copy; Asial Jim Co., LTD<hr/>
 * @author Asial Jim &nbsp;&nbsp; <span>Email:<a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a> &nbsp;&nbsp; <a href="asialjim@qq.com">asialjim@qq.com</a></span>
 * @since 2021/2/27 11:58   &nbsp;&nbsp; JDK 8
 * @version 1.0.0
 */
public interface WeChatMessageHandler {

    /**
     * <h3>METHOD DESCRIPTION <i>[ NAME: handle ]</i></h3>
     * handle we-chat message
     * @param weChatMessage {@link WeChatMessage we-chat message}
     * @return {@link java.lang.String response message}
     * @author Asial Jim &nbsp;&nbsp; <span>Email: &nbsp;&nbsp; <a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a> &nbsp;&nbsp; <a href="asialjim@qq.com">asialjim@qq.com</a></span>
     * @since 2021/3/11 21:36
     */
    String handle(WeChatMessage weChatMessage,String signature, String timestamp, String nonce, String echostr);

    /**
     * <h3>METHOD DESCRIPTION <i>[ NAME: messageType ]</i></h3>
     * we-chat message type
     * @return {@link Class<? extends WeChatMessageType> message type}
     * @author Asial Jim &nbsp;&nbsp; <span>Email: &nbsp;&nbsp; <a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a> &nbsp;&nbsp; <a href="asialjim@qq.com">asialjim@qq.com</a></span>
     * @since 2021/3/11 21:36
     */
    String messageTypeName();
}
